package com.xuecheng.manage_course.dao;

import com.github.pagehelper.Page;
import com.xuecheng.framework.domain.course.Category;
import com.xuecheng.framework.domain.course.CourseBase;
import com.xuecheng.framework.domain.course.CoursePic;
import com.xuecheng.framework.domain.course.ext.CategoryNode;
import com.xuecheng.framework.domain.course.ext.CourseInfo;
import com.xuecheng.framework.domain.course.request.CourseListRequest;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Created by Administrator.
 */
@Mapper
public interface CourseMapper {
   CourseBase findCourseBaseById(String id);

   @Select("select * from course_base")
   Page<CourseInfo> findCourseList();

   CategoryNode findCourse();
   @Select("select * from course_pic where courseid=#{courseId}")
   CoursePic findCoursePic(String courseId);
      //通过公司id查询课程信息
   Page<CourseInfo> findCourseListPage(CourseListRequest courseListRequest);

}
